package com.example.animals;

public class Animal {
    protected String name;

    protected void displayName() {
        System.out.println("Animal name: " +this.name);
    }

    public Animal(String name) {
        this.name = name;
    }
}
